POV-Ray : Newsgroups : povray.general : cos(pi*3/2) results -0.000 : cos(pi*3/2) results -0.000 Server Time
4 Aug 2024 22:09:57 EDT (-0400)
  cos(pi*3/2) results -0.000  
From: Jano
Date: 24 Jan 2003 15:15:16
Message: <web.3e319c0b7f992aa0e1b6456c0@news.povray.org>
pov-ray ver: 3.5.icl.win32
Sys. op: Win xp
cpu: pentium 4, 256 MB

If i do (i.e.) y= cos(x) where 0 < x < 2*pi and i'm testing the following:
   #if(y < 0)
      //block1...
   #else //block2...

the result when x= pi*3/2 is block1! And taking a look at its value, is
-0.00000 and is taken as negative number. By now i correct it simplyly
checking such y value:  #macro correct(num)(num<0?:num=0?0:num:num) #end

Can someone confirm if this is a bug? Thanks

(sorry, but my english is very bad)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.